<template>
    <section>
        <center-list :center-list="centerList" :title-option="titleOption"></center-list>
    </section>
</template>
<script>
import centerListComponent from '../../components/centerListComponent.vue';
import centerAction from '../../vuex/actions/centerAction';
import centerGetter from '../../vuex/getters/centerGetter';

export default {
    // 注册components
    components: {
        "center-list": centerListComponent,
        // Spinner,
    },
    data() {
        return {
            titleOption: null
        }
    },
    vuex: {
        getters: {
            centerList: centerGetter.getCenterList,
            // listLoading: (state) => state.listLoading
        },
        actions: {
            getCenterList: centerAction.getCenterList
        }
    },
    created() {
        this.getCenterList(0)
            .then(function() {
                console.log('center List加载完成:@centerListView');
            }, function() {

            });
    }
}
</script>
